package cn.tedu.spring.life;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestDBCConnect {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu.spring.life");
        DBCConnect dbcConnect=context.getBean(DBCConnect.class);
        System.out.println("4.开发者使用阶段;");
        //手动关闭IoC容器，会销毁所有的Bean
        context.close();
    }
}
